#include <QMessageBox>
#include <QIcon>
#include <QString>
#include <QFileDialog>
#include "mainwindowimpl.h"
//
MainWindowImpl::MainWindowImpl( QWidget * parent, Qt::WFlags f) 
	: QMainWindow(parent, f)
{
	setupUi(this);
	QObject::connect(actionInfo, SIGNAL(triggered()), this, SLOT(info()));
	QObject::connect(actionOpen, SIGNAL(clicked()), this, SLOT(browse()));
}

void MainWindowImpl::info()
{
	setWindowIcon(QIcon(QString::fromUtf8("wizard.png")));
	QMessageBox::about(this, QString("Info C-OOmpress"), QString("<b>C-OOmpress 1.0</b><br><br>by Maria,Natale e Tigre<br>"));
}

void MainWindowImpl::browse()
{
	QString path;
	path = QFileDialog::getOpenFileName(this, QString(), QString(), QString(
			"All (*)"));
}

//
